//
//  ClauseViewController.m
//  yigou
//
//  Created by wangdianlei on 2017/3/10.
//  Copyright © 2017年 hanyiwang. All rights reserved.
//

#import "ClauseViewController.h"

@interface ClauseViewController ()

@end

@implementation ClauseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationItem.titleView = [ViewFactory makeNavigationTitle:@"许可协议"];
    UIBarButtonItem *backBtn = [ViewFactory makeNavigationBackWhite:self action:@selector(goPop)];
    self.navigationItem.leftBarButtonItem = backBtn;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;
    [ViewFactory setNavigationBlack:self];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    self.navigationController.navigationBarHidden = YES;
}

- (void)goPop {
    [self.navigationController popViewControllerAnimated:YES];
}

@end
